package com.ruoyi.common.enums;

import com.ruoyi.common.utils.StringUtils;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 已读状态 模版类型 0 未读 1已读
 *
 * @author lcx
 */
@Getter
@AllArgsConstructor
public enum DataListStatusType {

    /**
     * 1已读
     */
    READ("1"),

    /**
     * 未读
     */
    NOT_READ("0");

    private final String classificationType;

    public static DataListStatusType getClassificationType(String str) {
        for (DataListStatusType value : values()) {
            if (StringUtils.contains(str, value.getClassificationType())) {
                return value;
            }
        }
        throw new RuntimeException("'DataListStatusType' not found By " + str);
    }
}
